
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="layout" content="main">
    <title>Sample title</title>
  </head>
  <body>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <g:if test="${flash.message != 'You need to specify a place!'}">

    <g:each in="${Images}" var="img">
       <g:if test="${img}">
         <p>
         <img class="normal" src="${createLink(action:'displayImage', id:img.id)}" /> 
         <g:set var="myarray" value="[id:img.id,place:placeInstance.id]" />
         <a href="${createLink(action:'deleteImage', params:myarray)}">Delete</a>

         </p>
        </g:if>
    </g:each>
      


        <div class="message" role="status">${placeInstance.id}</div>
            
            <g:uploadForm action="upload" id="${placeInstance.id}">
                <input type="file" name="uploadFile" />
                <input type="submit" />
            </g:uploadForm>

        <g:form action="done" >
          <fieldset class="buttons">
            <g:link class="done" action="done" id="${placeInstance?.id}">Done</g:link>
          </fieldset>      
        </g:form>          
      
    </g:if>  

    
  </body>
</html>
